package com.uni.dao;

import com.uni.pojo.Product;
import com.uni.pojo.ProductProvider;
import com.uni.pojo.ProductProviderExample;
import java.util.List;

import com.uni.pojo.Provider;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductProviderMapper {
    long countByExample(ProductProviderExample example);

    int deleteByExample(ProductProviderExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ProductProvider record);

    int insertSelective(ProductProvider record);

    List<ProductProvider> selectByExample(ProductProviderExample example);

    ProductProvider selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ProductProvider record, @Param("example") ProductProviderExample example);

    int updateByExample(@Param("record") ProductProvider record, @Param("example") ProductProviderExample example);

    int updateByPrimaryKeySelective(ProductProvider record);

    int updateByPrimaryKey(ProductProvider record);

    //    分割线
    int updateProductProvider(Product product);
    int deleteByProviderIds(@Param("ids") List<Long> ids);
}